js add space before capital letter

94

js add space before capital letter -

s = s.replace(/([A-Z])/g, ' $1').trim()

typescript space between capital letters -

s = s.replace(/([A-Z])/g, ' $1').trim()

Comments

Submit
0 Comments